package com.muyi.dao;

import com.muyi.pojo.dto.CommentDTO;
import com.muyi.pojo.entity.Comment;

import java.util.List;

public interface CommentDao {

    int addComment(Comment comment) throws Exception;

    int deleteCommentById(Integer comment_id) throws Exception;

    int updateComment(Comment comment) throws Exception;


    List<CommentDTO> getCommentBySearch(CommentDTO commentdto, Integer pageNo, Integer pageSize) throws Exception;

    long getTotal(CommentDTO commentdto) throws Exception;

    Comment getCommentById(Integer comment_id) throws Exception;
    int deleteCommentByIds(Integer[] comment_ids) throws Exception;



}
